package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysApprovalrecordMapper;
import com.ruoyi.system.domain.SysApprovalrecord;
import com.ruoyi.system.service.ISysApprovalrecordService;

/**
 * 审批记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class SysApprovalrecordServiceImpl implements ISysApprovalrecordService 
{
    @Autowired
    private SysApprovalrecordMapper sysApprovalrecordMapper;

    /**
     * 查询审批记录
     * 
     * @param id 审批记录主键
     * @return 审批记录
     */
    @Override
    public SysApprovalrecord selectSysApprovalrecordById(Long id)
    {
        return sysApprovalrecordMapper.selectSysApprovalrecordById(id);
    }

    /**
     * 查询审批记录列表
     * 
     * @param sysApprovalrecord 审批记录
     * @return 审批记录
     */
    @Override
    public List<SysApprovalrecord> selectSysApprovalrecordList(SysApprovalrecord sysApprovalrecord)
    {
        return sysApprovalrecordMapper.selectSysApprovalrecordList(sysApprovalrecord);
    }

    /**
     * 新增审批记录
     * 
     * @param sysApprovalrecord 审批记录
     * @return 结果
     */
    @Override
    public int insertSysApprovalrecord(SysApprovalrecord sysApprovalrecord)
    {
        return sysApprovalrecordMapper.insertSysApprovalrecord(sysApprovalrecord);
    }

    /**
     * 修改审批记录
     * 
     * @param sysApprovalrecord 审批记录
     * @return 结果
     */
    @Override
    public int updateSysApprovalrecord(SysApprovalrecord sysApprovalrecord)
    {
        return sysApprovalrecordMapper.updateSysApprovalrecord(sysApprovalrecord);
    }

    /**
     * 批量删除审批记录
     * 
     * @param ids 需要删除的审批记录主键
     * @return 结果
     */
    @Override
    public int deleteSysApprovalrecordByIds(Long[] ids)
    {
        return sysApprovalrecordMapper.deleteSysApprovalrecordByIds(ids);
    }

    /**
     * 删除审批记录信息
     * 
     * @param id 审批记录主键
     * @return 结果
     */
    @Override
    public int deleteSysApprovalrecordById(Long id)
    {
        return sysApprovalrecordMapper.deleteSysApprovalrecordById(id);
    }
}
